home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
dev
/
lang
/
amigatalk.lha
/
intuition
/
BoopsiVirtualTags.st
< prev
next >
Wrap
Text File
|
2002-05-07
|
2KB
|
55 lines
" --------------------------------------------------------------------- "
" BoopsiVirtualTags Class is a Singleton class that allows the user "
" to reference BOOPSI Virtual class tags' hexadecimal values. "
""
" EXAMPLE: 'myTag <- virtualTags getTag: #VIRTUALA_Contents' "
""
" ALL singleton classes MUST contain the following: "
""
" the methods: isSingleton AND privateSetup AND "
" uniqueInstance Class instance variable. "
" --------------------------------------------------------------------- "
Class BoopsiVirtualTags :Dictionary ! uniqueInstance !
[
isSingleton
^ true
|
privateNew ! newinstance !
newinstance <- super new.
^ newinstance
|
new
^ self privateSetup
|
getTag: tagKey
^ self at: tagKey
|
privateInitializeDictionary
self at: #VIRTUALA_Contents put: 16r85024500. " (Object *) [IS] "
self at: #VIRTUALA_Scroller put: 16r85024501. " (BOOL) [IS] "
self at: #VIRTUALA_ScrollX put: 16r85024502. " (WORD) [ISU] "
self at: #VIRTUALA_ScrollY put: 16r85024503. " (WORD) [ISU] "
self at: #VIRTUALA_VisibleX put: 16r85024504. " (WORD) [GN] "
self at: #VIRTUALA_VisibleY put: 16r85024505. " (WORD) [GN] "
self at: #VIRTUALA_TopX put: 16r85024506. " (WORD) [ISUGN] "
self at: #VIRTUALA_TopY put: 16r85024507. " (WORD) [ISUGN] "
self at: #VIRTUALA_TotalX put: 16r85024508. " (WORD) [GN] "
self at: #VIRTUALA_TotalY put: 16r85024509. " (WORD) [GN] "
self at: #VIRTUALA_ScrollerX put: 16r8502450A. " (Object *) [I] "
self at: #VIRTUALA_ScrollerY put: 16r8502450B. " (Object *) [I] "
self at: #VIRTUALA_InputScroll put: 16r8502450C. " (BOOL) [IS] "
self at: #VIRTUALA_NoDispose put: 16r8502450D. " (BOOL) [IS] "
|
privateSetup
(uniqueInstance isNil)
ifTrue: [uniqueInstance <- self privateNew.
self privateInitializeDictionary.
].
^ self "or ^ uniqueInstance??"
]